From: Keir Fraser Date: Tue, 31 Mar 2009 10:13:56 +0000 (+0100) Subject: xend: fix domain_migrate X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~72 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=be01c537b27616e84d2fa8238c2b7ce60be5a6ef;p=xen.git xend: fix domain_migrate When the guest(pv-on-hvm guest that cannot suspend) reboot in LiveMigration, the disconnecting of src-side is not transmitted to dist-side. As a result, the error processing on the dist side is not executed. Signed-off-by: Tomonari Horikoshi --- diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index b624f786ad..6cde465559 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -1378,6 +1378,7 @@ class XendDomain: XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst, node=node) finally: + sock.shutdown(socket.SHUT_RDWR) sock.close() def domain_save(self, domid, dst, checkpoint=False):